package com.example.dmallOrder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;
import java.io.Serial;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * DMALL-MQ-订单表
 *
 * @author 
 * @since 2025/07/14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString
@TableName("dmall_msg_order")
@Schema(name = "DmallMsgOrder", description = "DMALL-MQ-订单表")
public class DmallMsgOrder extends Model<DmallMsgOrder> {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "业务类型,01订单,02退货")
    @TableField("type")
    private String type;

    @Schema(description = "消息内容")
    @TableField("message")
    private String message;

    @Schema(description = "是否获取状态：0->未获取；1->已获取")
    @TableField("get_flag")
    private Boolean getFlag;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
